package com.fly.base.util;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 测试list转tree
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Category {

    private Long id;
    private Long pid;
    private String name;
    private List<Category> children;
}
